package com.example.service;

import com.example.mapper.StorageDao;
import io.seata.core.context.RootContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StorageServiceImpl implements StorageService{
    @Autowired
    private StorageDao storageDao;
    @Override
    public int modifiedStorage(Long productId, int used) {
        String XID = RootContext.getXID();
        System.out.println(XID);
        return storageDao.modifiedStorage(productId,used);
    }
}
